// 获取楼栋信息
// 管理员登录接口
const express = require('express');
const router = express.Router();
const db = require('../../db/connect');
const xzid = require('xzid')

router.post('/admin/DelAll', (req, res) => {
   
   const {Rows} = req.query;
   console.log(Rows)
    const sql = `DELETE FROM manger_title WHERE title_id in (?)`;
    db(sql,[Rows] ,(err, data) => {
        if (data) {
           res.send({
                data,
                code:200
           })
        } else {
            res.send({
                code: 400,
                content: err,
                message: '告诉他账户不存在'
            })
        }
    })
})
module.exports = router